﻿using Sunboxsoft.Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web.Http;
using Entity = Sunboxsoft.ASMS.Server.Domain.Entity;
using Service = Sunboxsoft.ASMS.Server.Domain.Service;

namespace Sunboxsoft.ASMS.Web.ApiControllers
{
    public class DisableController : ApiController
    {
        [HttpPost]
        public ServiceResult Package(GuidIdParams @params)
        {
            return new Service.DisableService().DisablePackage(@params.Id);
        }

        [HttpPost]
        public ServiceResult PackageArray(GuidIdArrayParams @params)
        {
            return new Service.DisableService().DisablePackageArray(@params.IdArray);
        }
    }
}
